#!/bin/env

from abstractinput import AbstractInput
import os
import codecs
	
class InputFile(AbstractInput):
	def init(self,config_file,parameter):
		self.fileName = parameter[2]
		if not os.path.exists(self.fileName): 
			print self.fileName," not exist!"
		pass


	def read(self):
		#for line in codecs.open(self.fileName,"r","utf8"):
		for line in open(self.fileName):
			yield line

	def abc(self):
		print "haha"
